package com.dxysun.design.decorator;

public class ConcreteDecoratorB extends Decorator
{
	public ConcreteDecoratorB(Component component)
	{
		super(component);
	}

	@Override
	public void operation()
	{
		operationFirst();
		component.operation();
		operationLast();
	}

	private void operationFirst()
	{

		System.out.println("DecoratorB first");
	}

	private void operationLast()
	{
		System.out.println("DecoratorB last");
	}
}
